SOURCES=boot.o main.o monitor.o common.o printk.o string.o descriptor_tables.o gdt.o interupt.o isr.o
CC = gcc

CFLAGS=-nostdlib -nostdinc -fno-builtin -fno-stack-protector -O2 
LDFLAGS=-Tlink.ld
ASFLAGS=-felf

all: $(SOURCES) link

clean:
	-rm *.o kernel

link:
	ld $(LDFLAGS) -o kernel $(SOURCES)

.s.o:
	nasm $(ASFLAGS) $<
